﻿#include "MessDispath.h"

#include <QDebug>

namespace Core {

	static MessDispath *G_MessDispath = NULL;

	/**
	* @brief 创建单例对象
	* @return
	*/
	MessDispath *MessDispath::instance()
	{
		if (G_MessDispath == NULL)
		{
			new MessDispath;
		}
		return G_MessDispath;
	}

	MessDispath::MessDispath(QObject *parent)
		: QObject(parent)
	{
		G_MessDispath = this;
	}

	MessDispath::~MessDispath()
	{
	}

	void MessDispath::setSystemLogInfo(QString strLog, int iLogType)
	{
		emit signalSystemLogInfo(strLog, iLogType);
	}

	void MessDispath::setNetworkSendMsgLength(int iLength)
	{
		emit signalNetworkSendMsgLength(iLength);
	}

	void MessDispath::setNetworkRecvMsgLength(int iLength)
	{
		emit signalNetworkRecvMsgLength(iLength);
	}

}//namespace Core 